package com.example.springboot.base;

import lombok.Data;

/**
 * @author gaosong
 * 建造返回格式
 */
@Data
public class BaseResult {
    private String code;
    //200=成功，否则失败
    private String msg;
    //失败时提示信息
    private Object data;
    //成功返回的内容

    public BaseResult(String code, String msg, Object data){
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
}
